<template>
  <a-card :bordered="false">
    <a-form @submit="handleSubmit" :form="form">

      <a-radio-group buttonStyle="solid" v-decorator="[ 'status', {'initialValue':-1}]">
          <a-radio-button :value="0">正常</a-radio-button>
          <a-radio-button :value="-1">停止</a-radio-button>
      </a-radio-group>
      <hr />
      <a-radio-group defaultValue="a" buttonStyle="solid">
        <a-radio-button value="a">杭州</a-radio-button>
        <a-radio-button value="b">上海</a-radio-button>
        <a-radio-button value="c">北京</a-radio-button>
        <a-radio-button value="d">成都</a-radio-button>
      </a-radio-group>


      <a-col :md="24" :sm="24">
      <a-form-item label="Note" :labelCol="{ span: 7 }" :wrapperCol="{ span: 15 }">
        <a-input v-decorator="['note',{rules: [{ required: true, message: 'Please input your note!' }]}]"/>
      </a-form-item>
      </a-col>
      <a-col :md="24" :sm="24">
      <a-form-item label="Gender" :labelCol="{ span: 7 }" :wrapperCol="{ span: 15 }">
        <a-select v-decorator="['gender',{rules: [{ required: true, message: 'Please select your gender!' }]}]" placeholder="Select a option and change input text above" @change="this.handleSelectChange">
          <a-select-option value="male">male</a-select-option>
          <a-select-option value="female">female</a-select-option>
        </a-select>
      </a-form-item>
      </a-col>
      <a-col :md="24" :sm="24">
      <a-form-item label="Gender" :labelCol="{ span: 7 }" :wrapperCol="{ span: 15 }">
        <a-cascader :options="areaOptions" @change="onChange" :showSearch="{filter}" placeholder="Please select" />
      </a-form-item>
      </a-col>
      <a-form-item :wrapperCol="{ span: 12, offset: 5 }">
        <a-col :md="24" :sm="24">
        <a-button type="primary" htmlType="submit">Submit</a-button>
        </a-col>
      </a-form-item>
    </a-form>

  URL = /account/settings/base
      RouteName = account-settings-base
      	/jeecg/helloworld
前端页面跳转用法:

<router-link :to="{ name: 'account-settings-base' }">
   基本设置
 </router-link>
 <router-link :to="{ name: 'account-center' }">
  <span>个人中心</span>
</router-link>
  </a-card>
</template>

<script>
  import { getAction } from '@/api/manage'
  export default {
    data () {
      return {
        formLayout: 'horizontal',
        form: this.$form.createForm(this),
        areaOptions:[]
      }
    },
    methods: {
      handleSubmit (e) {
        e.preventDefault()
        this.form.validateFields((err, values) => {
          if (!err) {
            console.log('Received values of form: ', values)
          }
        })

        
      },
      handleSelectChange (value) {
        console.log(value)
        this.form.setFieldsValue({
          note: `Hi, ${value === 'male' ? 'man' : 'lady'}!`,
        })
      },
      onChange(value, selectedOptions) {
        console.log(value, selectedOptions);
      },
      filter(inputValue, path) {
        return (path.some(option => (option.label).toLowerCase().indexOf(inputValue.toLowerCase()) > -1));
      },
    },
    created (){
     

      getAction('/api/area').then((res) => {
          console.log("------------")
          console.log(res)
          this.areaOptions = res;
      })
    }
  }
</script>